package com.owen.system.keep.consumption.dao;

import com.owen.system.keep.consumption.entity.KeepConsumptionType;
import com.owen.system.keep.consumption.vo.KeepConsumptionTypeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 消费类型
 */
public interface KeepConsumptionTypeDao {

    KeepConsumptionTypeVO get(@Param("id") String id);

    int findCountByKeepAccountId(@Param("keepAccountId") String keepAccountId);

    int findCountByKeepAccountIds(@Param("keepAccountIds") String[] keepAccountIds);

    List<KeepConsumptionTypeVO> list(Map<String, Object> map);

    List<KeepConsumptionTypeVO> findByKeepAccountIdAndConsumptionType(@Param("keepAccountId") String keepAccountId, @Param("consumptionType") String consumptionType);

    int count(Map<String, Object> map);

    int save(KeepConsumptionType keepConsumptionType);

    int update(KeepConsumptionType keepConsumptionType);

    int remove(@Param("id") String id);

    int batchRemove(String[] ids);

}
